/**
 * 
 */
package com.suyx.job.service.area.impl;

import org.springframework.stereotype.Service;

import com.suyx.job.entity.RoleInfo;
import com.suyx.job.entity.TuInfo;
import com.suyx.job.enums.SectEnums;
import com.suyx.job.utils.ScreenCapture;
import com.suyx.job.utils.SysStaticData;

/**
 * @author syx
 *
 */
@Service
public class GoToCsAreaServiceImpl extends AbstractAreaService{

	@Override
	public boolean execute(String device, String path, String area) {
		try {
			String[] infos = SysStaticData.CS1.get("长寿村").split("&");
			userCS1(device,infos);
			Thread.sleep(2 * 1000L);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return false;
	}

	@Override
	public boolean support(String area) {
		return SectEnums.CS.getCode().equals(area);
	}

	@Override
	public boolean goToPoint(RoleInfo roleInfo, String path, TuInfo tuInfo) {
		String device = roleInfo.getDevice();
		String area = tuInfo.getZuobiaoX()+" "+tuInfo.getZuobiaoY();
		// TODO Auto-generated method stub
		return false;
	}

}
